//
//  HMAudioPlayerListTableViewCell.m
//  HowToDo
//
//  Created by mynSoo on 2017/1/7.
//  Copyright © 2017年 KY. All rights reserved.
//

#import "HMAudioPlayerListTableViewCell.h"
#import <AVFoundation/AVFoundation.h>

@interface HMAudioPlayerListTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *cellTitlelabel;
@property (weak, nonatomic) IBOutlet UILabel *cellTotalTimeTabel;
@end

@implementation HMAudioPlayerListTableViewCell

- (void)setModel:(HMListenAnyTimeResModel *)model
{
    _model = model;
    if(!model)
    {
        return;
    }
    _cellTitlelabel.text = model.resource_name;
    self.cellTotalTimeTabel.text = [NSString convertTime:CMTimeGetSeconds(model.asset.duration)];
}
@end
